Professional SharePoint 2007 Design by Jacob Sanford & Randy Drisgill & David Drinkwine & Coskun Cavusoglu

Professional SharePoint 2007 Design by Jacob Sanford & Randy Drisgill & David Drinkwine & Coskun Cavusoglu

Author:Jacob Sanford & Randy Drisgill & David Drinkwine & Coskun Cavusoglu
Language: eng
Format: epub
Publisher: John Wiley & Sons
Published: 2010-12-26T16:00:00+00:00


The Master Page Structure

Master pages are ASP.NET pages written in either VB or C# and have a file extension of “.master”. Interesting enough, the language of the master page can be different from the code of the rest of the site. Despite the fact that master pages can be written in either language, MOSS master pages are almost always written in C#. If you are more comfortable with VB, you may have a steeper learning curve when making the transition to MOSS.

To get a better idea of what a master page looks like in traditional ASP.NET, see the following very simple example:

<%@ Master Language=“C#“ %>

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN“

“http://www.w3.org/TR/html4/loose.dtd“>

<html>

<head>

<meta http-equiv=“Content-Type“ content=“text/html; charset=utf-8“>

<title>Hello World Site</title>

<link rel=“stylesheet“ href=“myStyle.css“ type=“text/css“/>

</head>

<body>

<form id=“form1“ runat=“server“>

<div id=“divMain“>

<!-- This will be overridden by the content page main content -->

<asp:ContentPlaceHolder ID=“MainBody“ runat=“server“/>

</div>

<div id=“divFooter“>

<!-- This will be overridden by the content page footer -->

<asp:ContentPlaceHolder id=“Footer“ runat=“server“/>

</div>

</form>

</body>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.